﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using SqlSugar;

namespace Aioms.Dtos
{
    ///<summary>
    /// 移动端报修结果上传
    ///</summary>
    public class NoticeRepairResultDto
    {
        public NoticeRepairResultDto()
        {
        }

        /// <summary>
        /// 企业id
        /// </summary>           
        [FromForm(Name = "eid")]
        [JsonProperty("eid")]
        public long Eid { get; set; }

        /// <summary>
        /// 报修ID
        /// </summary>           
        [FromForm(Name = "npid")]
        [JsonProperty("npid")]
        public int NpId { get; set; }

        /// <summary>
        /// 设备id
        /// </summary>           
        [FromForm(Name = "dvid")]
        [JsonProperty("dvid")]
        public long Dvid { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [FromForm(Name = "begintime")]
        [JsonProperty("begintime")]
        public DateTime BeginTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [FromForm(Name = "endtime")]
        [JsonProperty("endtime")]
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 维修工时
        /// </summary>
        [FromForm(Name = "manhour")]
        [JsonProperty("manhour")]
        public string ManHour { get; set; }

        /// <summary>
        /// 维修结果
        /// </summary>
        [FromForm(Name = "result")]
        [JsonProperty("result")]
        public string Result { get; set; }

        /// <summary>
        /// 排故流程
        /// </summary>
        [FromForm(Name = "procedure")]
        [JsonProperty("procedure")]
        public string Procedure { get; set; } = "";

        /// <summary>
        /// 照片
        /// </summary>
        [FromForm(Name = "imgurl")]
        [JsonProperty("imgurl")]
        public string ImgUrl { get; set; }

        /// <summary>
        /// 视频
        /// </summary>
        [FromForm(Name = "videourl")]
        [JsonProperty("videourl")]
        public string VideoUrl { get; set; } = "";

        [FromForm(Name = "repair_epid")]
        [JsonProperty("repair_epid")]
        public long RepairEpid { get; set; }

        [FromForm(Name = "repair_eprealname")]
        [JsonProperty("repair_eprealname")]
        public string RepairEpRealname { get; set; }

    }
}
